// pages/upgradeText/upgradeText.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    pitch1: '../img/morenyinhangka_icons.png',
    pitch2: '../img/moren_icons.png',
    pitch3: '../img/moren_icons.png'
  },
    // 按钮选中状态改变开始
  btnPitch1: function () {

    var that = this;

    if (this.data.pitch1 == '../img/morenyinhangka_icons.png') {

      that.setData({


        pitch2: ' ../../../img/moren_icons.png',
        pitch3: ' ../../../img/moren_icons.png',

      });

    } else {
      that.setData({
        pitch1: ' ../../../img/morenyinhangka_icons.png',
        pitch2: ' ../../../img/moren_icons.png',
        pitch3: ' ../../../img/moren_icons.png',

      });

    }

  },
  btnPitch2: function (e) {

    var that = this;

    if (this.data.pitch2 == '../img/morenyinhangka_icons.png') {

      that.setData({

        pitch1: ' ../../../img/moren_icons.png',
        pitch3: ' ../../../img/moren_icons.png',


      });

    } else {
      that.setData({
        pitch2: ' ../../../img/morenyinhangka_icons.png',
        pitch1: ' ../../../img/moren_icons.png',
        pitch3: ' ../../../img/moren_icons.png',
      });

    }

  },
  btnPitch3: function (e) {

    var that = this;

    if (this.data.pitch3 == '../img/morenyinhangka_icons.png') {

      that.setData({

        pitch1: ' ../../..//moren_icons.png',
        pitch2: ' ../../../img/moren_icons.png',


      });

    } else {
      that.setData({
        pitch3: ' ../../../img/morenyinhangka_icons.png',
        pitch1: ' ../../../img/moren_icons.png',
        pitch2: ' ../../../img/moren_icons.png',
      });

    }

  },
   // 按钮选中状态改变结束


  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },


})



